package oracle.apps.financials.collection.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.j256.ormlite.dao.ForeignCollection;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "c_collector")
public class Collector {

	@DatabaseField(generatedId = true)
	private Integer collectorID;

	@DatabaseField(canBeNull = false, index = true, unique = true)
	private String collectorName;
	@DatabaseField
	private String CEI;
	@DatabaseField
	private String address;
	@DatabaseField
	private String email;
	@DatabaseField
	private String phone;
	@DatabaseField
	private String speciallyBucket;
	@DatabaseField
	private String language;
	
	@DatabaseField
	private String industry;
	
	@DatabaseField
	private String timeZone;
	
	@DatabaseField
	private String availability;
	
	@DatabaseField
	private String region;
	
	@ForeignCollectionField(eager = false)
	
	ForeignCollection<Customer> customers;
	
	@DatabaseField
	private Date  createTime=new Date();
	

	private List<Customer> customerList = new ArrayList<Customer>();

	public String getCollectorName() {

		return collectorName;
	}

	public void setCollectorName(String collectorName) {
		this.collectorName = collectorName;
	}

	public String getCEI() {
		return CEI;
	}

	public void setCEI(String cEI) {
		CEI = cEI;
	}

	public List<Customer> getCustomerList() {
		return customerList;
	}

	public void setCustomerList(List<Customer> customerList) {
		this.customerList = customerList;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getCollectorID() {
		return collectorID;
	}

	public void setCollectorID(Integer collectorID) {
		this.collectorID = collectorID;
	}

	public ForeignCollection<Customer> getCustomers() {
			
		return customers;
	}

	public void setCustomers(ForeignCollection<Customer> customers) {
		this.customers = customers;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getIndustry() {
		return industry;
	}

	public void setIndustry(String industry) {
		this.industry = industry;
	}

	public String getTimeZone() {
		return timeZone;
	}

	public void setTimeZone(String timeZone) {
		this.timeZone = timeZone;
	}

	public String getAvailability() {
		return availability;
	}

	public void setAvailability(String availability) {
		this.availability = availability;
	}

	public String getRegion() {
		return region;
	}

	public void setRegion(String region) {
		this.region = region;
	}

	public String getSpeciallyBucket() {
		return speciallyBucket;
	}

	public void setSpeciallyBucket(String speciallyBucket) {
		this.speciallyBucket = speciallyBucket;
	}

	
}
